<?php /* Smarty version 2.6.20, created on 2009-08-27 00:47:28
         compiled from E:%5Cprogram%5Cpsharp%5CFsdr%5CApp%5CView%5Cadmin/article.htm */ ?>
﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php echo $this->_tpl_vars['adminTitle']; ?>
</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<meta name="Generator" content="EditPlus" />
<meta name="Author" content="" />
<meta name="Keywords" content="" />
<link rel="stylesheet" href="/Css/admin/global.css" type="text/css" />
<script language="javascript" src="/Js/admin/function.js"></script>
</head>


<body onload="InitDocument();">
<div class="main-box">
	<div class="head-dark-box">
		<?php echo $this->_tpl_vars['title']; ?>

	</div>
	<div class="body-box tip-msg">
		提示: 带 <img src="/images/star.gif" alt="*" /> 的项目为必填信息.
	</div>
	<form method="post" action="article.php" class="white-box">
		<table class="alt-table" cellspacing="0">
			<tr class="light-row">
				<td class="width-20percent">文章分类</td>
				<td><?php echo $this->_tpl_vars['catPath']; ?>
</td>
			</tr>
			<tr class="dark-row">
				<td>图片新闻</td>
				<td><input type="radio" name="isImg" value="1"  onclick="showObj('imgTR', 'show')"/> 是
					<input type="radio" name="isImg" value="0"   onclick="showObj('imgTR', 'hide')"/> 否
				</td>
			</tr>
			<tr class="<?php echo $this->_tpl_vars['imgShow']; ?>
" id="imgTR">
				<td class="require-field">缩略图</td>
				<td>
					<img src="<?php echo $this->_tpl_vars['imgName']; ?>
" alt="新闻缩略图" class="thumbnail" id="selectedThumb" />
					<input type="button" class="button" value="从相册中添加" onclick="showThumbWindow()" />
					<input type="hidden" name="imgName" id="imgName" value="<?php echo $this->_tpl_vars['imgName']; ?>
" />
				</td>
			</tr>
			<tr class="light-row">
				<td class="require-field">文章标题</td>
				<td><input type="text" class="text-box" name="title" size="30" value="<?php echo $this->_tpl_vars['artTitle']; ?>
" maxlength="40" /></td>
			</tr>
			<tr class="dark-row">
				<td class="require-field">发布时间</td>
				<td><input type="text" class="text-box" name="postTime" size="20" value="<?php echo $this->_tpl_vars['postTime']; ?>
" />
					如自己更改请注意格式.
				</td>
			</tr>
			<tr class="light-row">
				<td>文章摘要</td>
				<td><textarea class="text-box" name="summary" cols="40" rows="4"><?php echo $this->_tpl_vars['summary']; ?>
</textarea>
					小于100个汉字.
				</td>
			</tr>
			<tr class="dark-row">
				<td class="require-field">文章作者</td>
				<td><input type="text" class="text-box" name="author" size="15" value="<?php echo $this->_tpl_vars['author']; ?>
" maxlength="20"/></td>
			</tr>
			<tr class="light-row">
				<td>文章来源</td>
				<td><input type="text" class="text-box" name="comeFrom" size="25" value="<?php echo $this->_tpl_vars['comeFrom']; ?>
" maxlength="25"/></td>
			</tr>
			<tr class="dark-row">
				<td class="require-field">关键字</td>
				<td><input type="text" class="text-box" name="keyword" size="20" value="<?php echo $this->_tpl_vars['keyword']; ?>
" maxlength="20"/>
					用于文章搜索,多个请用","隔开.
				</td>
			</tr>
			<tr class="light-row">
				<td>是否推荐</td>
				<td>
					<input type="radio" name="recommend" value="1" /> 推荐
					<input type="radio" name="recommend" value="0" /> 不推荐
				</td>
			</tr>
		</table>
		<?php echo $this->_tpl_vars['editor']; ?>

		
		<div class="dark-row center">
				<input name="content" id="content "type="hidden" value="" />
				<input type="hidden" name="action" value="<?php echo $this->_tpl_vars['action']; ?>
" />
				<input type="hidden" name="id" value="<?php echo $this->_tpl_vars['artID']; ?>
" />
				<input type="hidden" name="linkPath" value="<?php echo $this->_tpl_vars['linkPath']; ?>
" />
				<input type="hidden" name="oldPath"	value="<?php echo $this->_tpl_vars['oldPath']; ?>
" />
				<input type="hidden" name="audit"	value="1" />
				<input type="button" class="button" value="确 定" onclick="submitPost(this.form)" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<input type="button" class="button" value="预 览" onclick="previewArt()" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<input type="button" class="button" value="清 空" onclick="clearContent()" />

		</div>
	</form>
</div>
<div class="main-box">
	<div class="foot-sql">
		Query Times: <?php echo $this->_tpl_vars['queryTime']; ?>
  Execute Time: <?php echo $this->_tpl_vars['executeTime']; ?>
 ms
	</div>
</div>
</body>
<?php echo '
<script>
var artContent = "{$artContent}";
//两个单选按钮的默认值
var isImgCheck = "{$isImg}";
var recommendCheck = "{$recommend}";
setRadioCheck("isImg", isImgCheck);
setRadioCheck("recommend", recommendCheck);
//显示选择文章缩略图的窗口
function showThumbWindow()
{
	var feature = "width=500,height=520px,menubar=no,location=no,status=yes,toolbar=no,resizable=no";
	window.open("listImage.php?action=selectThumb", "",feature);
}
</script>
'; ?>

</html>